gtk-demo: Enable inline completion
authorMatthias Clasen <mclasen@redhat.com>
Wed, 24 Jun 2020 04:27:21 +0000 (00:27 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 24 Jun 2020 17:02:50 +0000 (13:02 -0400)
Enable inline completion in the entry completion
demo, to have some code exercising this feature.
It is broken.

demos/gtk-demo/entry_completion.c

index a9949c2fc89e4377f04c4770fd96fca87f5c0ae8..40d64bd8b67a745fbc003b9efa306d796b701cb2 100644 (file)
@@ -107,6 +107,9 @@ do_entry_completion (GtkWidget *do_widget)
 
       /* Use model column 0 as the text column */
       gtk_entry_completion_set_text_column (completion, 0);
+
+      gtk_entry_completion_set_inline_completion (completion, TRUE);
+      gtk_entry_completion_set_inline_selection (completion, TRUE);
     }
 
   if (!gtk_widget_get_visible (window))